var ArchiveEntry = function(name, image, type, time) {
	
	//types are checkin, checkout,  story, lunch, dailyLog, storyMultiple, lunchMultiple, dailyLogMultiple
	this.getID= function(){
		return this.name.replace(/ /g, "_") + "-ID";
	};
	this.name = name;
	this.image = image;

	this.entry_li = $('<li></li>');

	this.entry_li.addClass('ArchiveEntry');
	var html_text = "";
	
	//insert html text into div - need to find the best way to do this
	//id will look like ID.html
	if (type == 'checkin'){
		html_text = 
	        "<img src=" + image + " class=picture alt=Name />" +
	        "<span class=name>" + name + 
	        " was checked in on " + time + "." +
	        "<img src=images/CheckInOutShortcut.png class=icon>";
		
	} else if (type == 'checkout'){
		html_text = 
	        "<img src=" + image + " class=picture alt=Name />" +
	        "<span class=name>" + name + 
	        " was checked out on " + time + "." +
	        "<img src=images/CheckInOutShortcut.png class=icon>";
	} else if (type =='story'){
		html_text = 
	        "<img src=" + image + " class=picture alt=Name />" +
	        "<span class=name>" + name +  
	        " was shared in a story on " + time + "." +
	        "<img src=images/ShareStoryShortcut.png class=icon>";
		
	} else if (type =='storyMultiple'){
		html_text = 
	        "<img src=" + image + " class=picture alt=Name />" +
	        "<span class=name>" + name +  
	        " were shared in a story on " + time + "." +
	        "<img src=images/ShareStoryShortcut.png class=icon>";
		
	} else if (type == 'lunchMultiple'){
		html_text = 
	        "<img src=" + image + " class=picture alt=Name />" +
	        "<span class=name>" + name + 
	        " were logged into the lunch report on " + time + "." +
	        "<img src=images/ReportLunchShortcut.png class=icon>";
		
	} else if (type == 'dailyLogMultiple'){
		html_text = 
	        "<img src=" + image + " class=picture alt=Name />" +
	        "<span class=name>" + name + 
	        " were logged into the daily report on " + time + "." +
	        "<img src=images/ReportDailyLogShortcut.png class=icon>";
		
	}	else if (type == 'lunch'){
		html_text = 
	        "<img src=" + image + " class=picture alt=Name />" +
	        "<span class=name>" + name + 
	        " was logged into the lunch report on " + time + "." +
	        "<img src=images/ReportLunchShortcut.png class=icon>";
		
	} else if (type == 'dailyLog'){
		html_text = 
	        "<img src=" + image + " class=picture alt=Name />" +
	        "<span class=name>" + name + 
	        " was logged into the daily report on " + time + "." +
	        "<img src=images/ReportDailyLogShortcut.png class=icon>";
		
	}
	

	this.entry_li.html(html_text);	
	
	
	this.getLi = function() {
		return this.entry_li;
	};
	

	};